package com.study.rpc03.client;

import com.study.common.IUserService;

/**
 * 03的改动把静态代理变为动态代理
 * 直接通过代理对象获得需要的类(面向接口编程)
 */
public class Client {
    public static void main(String[] args) throws Exception{
        IUserService service = Stub.getStub();
        System.out.println(service.findUserById(123));
    }
}
